package cn.zw.design.decorator;

public class Soy extends CondimentDecotator {

	private Beverage beverage;
	
	public Soy(Beverage beverage) {
		this.beverage = beverage;
	}
	
	@Override
	public void setCondiment() {
		beverage.getCondis().add("Soy");
		
	}

	@Override
	public void cost() {
		setPrice(beverage,1.0f);
		setCondiment();
	}


}
